import http from '../utils/request'

//获取VIP产品
export let productApi = (category_id)=> http.get('/product/get_product',{category_id})

//下单
export let orderApi = (product_id,quantity)=>http.post('/order/pre_order',{product_id,quantity})

//发起支付
export let paymentApi = (order_id)=>http.post('/pay/payment',{order_id})

//查询结果
export let paymentResultsApi = (order_id)=>http.get('/order/query_order_status?order_id='+order_id)